package io.wdb.modules.activity.wxapp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import io.wdb.common.utils.UUIDGenerator;


import io.wdb.modules.activity.wxapp.dao.HdScanConfigDao;
import io.wdb.modules.activity.wxapp.entity.HdScanConfigEntity;
import io.wdb.modules.activity.wxapp.service.HdScanConfigService;



@Service("hdScanConfigService")
public class HdScanConfigServiceImpl implements HdScanConfigService {
	@Autowired
	private HdScanConfigDao hdScanConfigDao;
	
	@Override
	public HdScanConfigEntity queryObject(String id){
		return hdScanConfigDao.queryObject(id);
	}
	
	@Override
	public List<HdScanConfigEntity> queryList(Map<String, Object> map){
		return hdScanConfigDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hdScanConfigDao.queryTotal(map);
	}
	
	@Override
	public String save(HdScanConfigEntity hdScanConfig){
		hdScanConfig.setId(UUIDGenerator.getUUID());
		hdScanConfigDao.save(hdScanConfig);
		return hdScanConfig.getId();
	}
	
	@Override
	public void update(HdScanConfigEntity hdScanConfig){
		hdScanConfigDao.update(hdScanConfig);
	}
	
	@Override
	public void delete(String id){
		hdScanConfigDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hdScanConfigDao.deleteBatch(ids);
	}
	
}
